<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>json</title>
</head>
<body>
<script>
     // var obj = new Object();
     // obj.name = '凤姐';
     //
     // obj.say = function () {
     //     return '老娘最美'
     // }
     //
     // console.log(obj.name);
     // console.log(obj.say());

     var arr = ['apple' , 'pear' , 'banana'];

    // json 对象
    var obj = {
        'name' : '凤姐',
        say : function () {return '老娘最美'}
    };
    var key;
    for (key in obj){
        console.log(obj[key])
    }

     //
     // console.log(obj.name)
     // console.log(obj.say())

</script>
</body>
</html>